package com.luweiteng.valiteddemo.entity;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ludans
 * @program valited-demo
 * @date 2020/8/8 16:23
 */
@Data
public class ValitedBean {

    @NotBlank
    private String name;

    @Min(value = 18,message = "输入的值应该大于 18")
    @Max(value = 30,message = "不大于 30")
    private Integer age ;


}
